<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
Map userInfo=(Map)request.getAttribute("__resultModle.outParams");
String Token=(String)userInfo.get("Token");
List<Map> rights=null;
if(userInfo!=null){
  rights=(List<Map>)userInfo.get("right"); 
}
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base id="base" href="<%=basePath%>">
		<title>医疗收费查询系统</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">    
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="shortcut icon" href="<%=basePath%>favicon.ico" type="image/x-icon" />
		<link type="text/css" href="<%=basePath%>style/bace.css" rel="stylesheet"/>
		<link type="text/css" href="<%=basePath%>style/block.css" rel="stylesheet"/>
		<link rel="stylesheet" type="text/css" href="<%=basePath%>style/themes/default/easyui.css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath%>style/themes/icon.css">
		<link rel="stylesheet" type="text/css" href="<%=basePath%>WebRoot/style/themes/icon.css">
		<script type="text/javascript" src="<%=basePath%>javascript/jquery-1.7.1.min.js"></script>
		<script type="text/javascript" src="<%=basePath%>javascript/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="<%=basePath%>javascript/pub.js"></script>
		<script type="text/javascript" src="<%=basePath%>pages/home/js/home.js"></script>
		<script type="text/javascript" src="<%=basePath%>javascript/easyui_pub.js"></script>
		<script type="text/javascript" src="<%=basePath%>javascript/locale/easyui-lang-zh_CN.js"></script>
		<script>window.onerror=hide_error_message;function hide_error_message(){return true;}</script>
		<style>
	body,html{
		height:100%;
	}
	#mainbk {
	height: 100%;
	border-top: none;
	border-bottom: none;
}
    </style>
	</head>
	<body ID="mainbk"  onselectstart="return false">
	<div id="layout" class="easyui-layout" style="padding: 0px 30px 0px 30px;height: 100%;width:96%;">
	<div id="basePath" value="<%=basePath%>" style="disply:none;"></div>
	<div id="token" value="<%=Token%>" style="disply:none;"></div>
&quot;<!--	<div style="height:100%;width:1000px;margin:0 auto;">-->
<!--		<div  ID="mainbk">-->
			<div region="north"   style="overflow:hidden; height:121px; border:0px;">
			    <div class="content S_index header" >
					<div class="col_left">
					</div>
					<div class="col_right a_whtie_yell">
						<a class="user""><%=userInfo.get("userName")%></a><span>|</span><span id="localtime"><%=userInfo.get("date")%></span><span>|</span><a href="javascript:void(0)" onclick="loginout();">退出</a><br/>
						<a href="javascript:void(0)" onclick=setPWD() >修改密码</a><span>|</span><a href="javascript:void(0)" >帮助中心</a><span>|</span><a href="javascript:void(0)" >联系管理员</a>
					</div>	
				</div>
				<div class="content S_index">
				    <div class="top">
				       <div class="top_01"></div><div class="top_02"></div><div class="top_03"></div>
				    </div>
				</div>					
			</div>
			<div region="south" split="true" style="height:40px;overflow:hidden; border:0px;">
				<div class="content footer">
					技术支持：福州博思软件技术有限公司 备案号：56565656<br/>
					             CopyRight©2012
				</div>
			</div>
			<div region="west" style="width:200px;overflow:hidden;border:0px;" id="menuPnl" >
			<div class="easyui-layout" fit="true" >
				<div style="height:90px;background:#fff url('<%=basePath%>images/left_bg.gif') no-repeat left top;border:0px;" region="north" fit="false">
					<div style="margin-top:40px;"><h1 class="menu_h1"><span>主菜单</span><em><a onclick="javascript:$('#layout').layout('collapse','west');">>></a></em></h1></div>
				</div>
				<div region="center">
					<div class="easyui-accordion" fit="true" border="false">
					    <%if(rights!=null&&rights.size()>0){%>
					    <%for(int i=0;i<rights.size();i++){%>
					    <%
					        Map menu=(Map)rights.get(i);
					        String fthrCode="";
					     %>   
					     <%   
					           if (menu.get("F_LEVEL").toString().equals("1")){
					           fthrCode=(String)menu.get("F_CODE");
					     %>
						<div title="<%=menu.get("F_NAME") %>" style="overflow:auto; " class="menu_list a_gray_yell">
							<ul>
							    <%
							     for(int k=0;k<rights.size();k++){
							        Map node=(Map)rights.get(k);
							     %>
							    <% if (node.get("F_LEVEL").toString().equals("2")&&((String)node.get("F_CODE")).substring(0,fthrCode.length()).equals(fthrCode)){ %>
								<li style="cursor:pointer" onClick="addTab('<%=(String)node.get("F_NAME") %>','<%=basePath%><%=(String)node.get("F_ACTION")%>?Token=<%=Token%>');return false" ><span ><%=(String)node.get("F_NAME") %></span><br/><br/></li>
								<%} }%>
							</ul>
						</div>
						<%} %>
						<%}}  %>
					</div>
				</div>
			</div>
				
			</div>
			<div region="center" title="" style="overflow:hidden;border-top-width:0px;">
				<div class="easyui-tabs" id="tt" fit="true" border="false"  >
				    <div title="欢迎" style="padding:20px;overflow: hidden;">
				        <table style="width: 100%;height: 100%;">
				           <tr><td align="center""><img src="<%=basePath%>images/hello.jpg" /></td></tr>
				        </table>       
                    </div> 
				</div>
			</div>
<!--		</div>-->
		<div style="display: none; padding: 20px;" id="pwdUpdateDig">
			<form method="post" id="pwdUpdateForm" name="pwdUpdateForm">
				<table align="center" cellspacing="5" style="line-height: 25px">
					<tr>
						<td align="right">
							原密码:
						</td>
						<td>
							<input name="F_PASSWORD" id="oldPWD" validType=Isnum style="width: 212px;" validType=length[6,20] invalidMessage="请输入6-20位字符"
								maxlength="20" required="true" type="password" missingMessage="必填" class="easyui-validatebox" /><font style="color:#FF0000">&nbsp;*</font>
						</td>
					</tr>
					<tr>
						<td align="right">
							新密码:
						</td>
						<td>
							<input name="F_PASSWORD1" id="newPWD" style="width: 212px;" validType=length[6,20] invalidMessage="请输入6-20位字符"
								maxlength="20" required="true" type="password" missingMessage="必填" class="easyui-validatebox" /><font style="color:#FF0000">&nbsp;*</font>
						</td>
					</tr>
									<tr>
						<td align="right">
							确认新密码:
						</td>
						<td>
						<input id="newQRPWD" name="F_PASSWORD2" maxlength="20" validType=length[6,20] invalidMessage="请输入6-20位字符"
						required="true" missingMessage="必填" type="password" style="width:212px;" class="easyui-validatebox"/><font style="color:#FF0000">&nbsp;*</font>				
	                 	</td>
					</tr>
				</table>
			</form>
		</div>		
<!--	</div>-->
	</div>
	<script type="text/javascript" src="<%=basePath%>javascript/jquery.easyui.min.js"></script>
	</body>
</html>
